package com.swap.business.service.impl;


import java.util.List;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.swap.business.domain.SwapDevice;
import com.swap.business.mapper.DeviceMapper;
import com.swap.business.service.DeviceService;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

/**
 * 交换机设备信息Service业务层处理
 *
 * @author swap
 * @date 2024-06-19
 */
@Service
public class DeviceServiceImpl extends ServiceImpl<DeviceMapper, SwapDevice> implements DeviceService
{

    /**
     * 查询交换机设备信息列表
     *
     * @param device 交换机设备信息
     * @return 交换机设备信息
     */
    @Override
    public List<SwapDevice> queryList(SwapDevice device)
    {
        QueryWrapper<SwapDevice> queryWrapper = Wrappers.query();
        queryWrapper.eq("status", 1);
        return this.list(queryWrapper);
    }
}

